//
//  StatusesBottomView.swift
//  Microblog
//
//  Created by steaest on 15/8/6.
//  Copyright © 2015年 steaest. All rights reserved.
//

import UIKit

class StatusesBottomView: UIView {

    //MARK: - 构造函数
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //MARK: - 设置界面
    private func setupUI() {
        backgroundColor = UIColor(white: 0.95, alpha: 1)
    
        addSubview(forwordBtn)
        addSubview(contentBtn)
        addSubview(likeBtn)
        //自动布局
        ff_HorizontalTile([forwordBtn,contentBtn,likeBtn], insets: UIEdgeInsetsZero)
    }
    
    //MARK: - 懒加载控件
    private lazy var forwordBtn: UIButton = UIButton(title: "转发", imageName: "timeline_icon_retweet")
    private lazy var contentBtn: UIButton = UIButton(title: "评论", imageName: "timeline_icon_comment")
    private lazy var likeBtn: UIButton = UIButton(title: "赞", imageName: "timeline_icon_unlike")
}
